package com.mhkj.base.itemInfo.group.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.mhkj.base.itemInfo.item.entity.Item;
import com.mhkj.base.region.entity.TSysNation;
import com.mics.core.common.validate.annotation.Validate;
import com.mics.core.system.base.entity.BaseDomain;

/**
 *  组团
 * @author wt
 */
@Entity
@Table(name="t_group")
@Validate
public class Group  extends BaseDomain {

	/**
	 * 序号
	 */
	private static final long serialVersionUID = -6552976445764725962L;

	/**
	 * 组团名称
	 */
	@Column(name="group_name")
	private String groupName;
	/**
	 * 计划建筑面积
	 */
	@Column(name="group_plan_building_area")
	private Double groupPlanBuildingArea;
  
	/**
	 * 说明
	 */
	@Column(name="remark",length=550)
	private String remark;
	
	
	@OneToOne
	@JoinColumn(name = "city_id")
	private TSysNation tSysNation;
	
	/**
	 * 城市id
	 */
	 @Transient
	 private Long cityId;
	
	/**
	 * 省id
	 */
	@Transient
	private Long provinceId;

	@ManyToOne
	@JoinColumn(name = "item_id")
	private Item item;
	

	/**
	 * 项目id
	 */
	@Transient
	private Long itemId;


	public Long getProvinceId() {
		return provinceId;
	}
	public void setProvinceId(Long provinceId) {
		this.provinceId = provinceId;
	}
	public String getGroupName() {
		return groupName;
	}
	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}
	public Double getGroupPlanBuildingArea() {
		return groupPlanBuildingArea;
	}
	public void setGroupPlanBuildingArea(Double groupPlanBuildingArea) {
		this.groupPlanBuildingArea = groupPlanBuildingArea;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public TSysNation gettSysNation() {
		return tSysNation;
	}
	public void settSysNation(TSysNation tSysNation) {
		this.tSysNation = tSysNation;
	}
	public Long getCityId() {
		return cityId;
	}
	public void setCityId(Long cityId) {
		this.cityId = cityId;
	}
	public Item getItem() {
		return item;
	}
	public void setItem(Item item) {
		this.item = item;
	}
	public Long getItemId() {
		return itemId;
	}
	public void setItemId(Long itemId) {
		this.itemId = itemId;
	}
	 
	
	
}
